<template>
  <div class="icons">
    <div><el-button @click="passClick">按钮two</el-button></div>
  </div>
</template>

<script>
export default {
  name: 'HomePear',
  props: {
  },
  data () {
    return {
      name: '子传子'
    }
  },
  computed: {
  },
  mounted () {
  },
  methods: {
    passClick () {
      // 在全局main.js里面定义公共bus--也可在不同组件间传值
      this.bus.$emit('ReceiveMessage', this.name)
    }
  }
}
</script>
